
namespace ZR.Model.Dto.Business.ProductionControl
{
    /// <summary>
    /// 班次管理查询对象
    /// </summary>
    public class CksBasShiftQueryDto : PagerInfo 
    {

    }

    /// <summary>
    /// 班次管理输入输出对象
    /// </summary>
    public class CksBasShiftDto
    {
        [Required(ErrorMessage = "Id不能为空")]
        public int Id { get; set; }

        [Required(ErrorMessage = "班次名称不能为空")]
        public string Name { get; set; }

        [Required(ErrorMessage = "开始时间不能为空")]
        public DateTime? StartTime { get; set; }

        [Required(ErrorMessage = "结束时间不能为空")]
        public DateTime? EndTime { get; set; }

        [Required(ErrorMessage = "轮班方式不能为空")]
        public int Type { get; set; }

        public DateTime? CreatedTime { get; set; } = DateTime.Now;

        [ExcelColumn(Name = "轮班方式")]
        public string TypeLabel { get; set; }
    }
}